home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / tsbgex / src / movie / timer.c < prev   
Encoding:
C/C++ Source or Header  |  1994-11-16  |  480 b   |  33 lines

  1. #include <fmcfrb.h>
  2.  
  3. static int cur_timeno = -1;
  4. static TIM_TIME org_timer;
  5.  
  6. timer_on()
  7. {
  8.     TIM_TIME timer;
  9.     
  10.     timer = org_timer;
  11.     return (TIMosettime(&timer, &cur_timeno));
  12. }
  13.  
  14. timer_off()
  15. {
  16.     return (TIMoclrtime(cur_timeno));
  17. }
  18.  
  19. TIM_settime(TIM_TIME *timer, int *timeno)
  20. {
  21.     int ret;
  22.  
  23.     org_timer = *timer;
  24.     ret = TIMosettime(timer, &cur_timeno);
  25.     *timeno = cur_timeno;
  26.     return (ret);
  27. }
  28.  
  29. TIM_clrtime(int timeno)
  30. {
  31.     return (TIMoclrtime(cur_timeno));
  32. }
  33.